//************************************************************************
//     dfrget.h
//     2009 © DigiFi Limited
//
//     This is the header file defines the repeat get commands
//     
//
//************************************************************************

#ifndef DFRGET_HEADER
#define DFRGET_HEADER

#include "dfclient.h"

int dfrget_init(void (*callback)(int));
int dfrget_connected(void);
int dfrget_shutdown(void);



int dfrget_enable(void);
int dfrget_disable(void);



void dfrget_bufferdump(void);
void dfrget_bufferflush(void);
void dfrget_dump(void);


// RGet functions
int dfrget_albumartist(unsigned int room_id, void (*callback)(df_albumartist*));
int dfrget_clearcommands(unsigned int room_id);
int dfrget_detailedtrackinfo(unsigned int room_id, void (*callback)(df_detailedtrack*));
int dfrget_lastplayererror(unsigned int room_id, void (*callback)(char*));
int dfrget_playerstatus(unsigned int room_id, void (*callback)(char*));
int dfrget_playingchecksum(unsigned int room_id, void (*callback)(char*));
int dfrget_repeat(unsigned int room_id, void (*callback)(int));
int dfrget_shuffle(unsigned int room_id, void (*callback)(int));
int dfrget_trackname(unsigned int room_id, void (*callback)(df_trackname*));
int dfrget_trackposition(unsigned int room_id, void (*callback)(df_time*));


#endif